# $Id: PKGBUILD 74911 2012-08-09 12:06:08Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Cilyan Olowen <gaknar@gmail.com>
# Contributor: fill <mailbox@fillo.ru>
# Contributor: Anton Shestakov <engored*ya.ru>

pkgname=flashrom
pkgver=0.9.6.1
pkgrel=1
pkgdesc="Utility for reading, writing, erasing and verifying flash ROM chips"
url="http://www.flashrom.org/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libftdi' 'pciutils')
optdepends=('dmidecode: for SMBIOS/DMI table decoder support')
source=("http://download.flashrom.org/releases/${pkgname}-${pkgver}.tar.bz2")
md5sums=('407e836c0a2b17ec76583cb6809f65e5')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make PREFIX="${pkgdir}/usr" install
}
